/**   
 * @Title: GridViewNoScroll.java 
 * @Package com.esun.util 
 * @Description: (自定义gridview) 
 * @author City Jiangsy@500wan.com   
 * @date 2011-6-18 下午05:30:57  
 * copy right 深圳市易讯天空网络技术有限公司
 */
package com.esun.util.custom;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * @ClassName: GridViewNoScroll
 * @Description: (自定义gridview去除scroll效果)
 * @author City Jiangsy@500wan.com
 * @date 2011-6-18 下午05:30:57
 * 
 */
public class GridViewNoScroll extends GridView {

	public GridViewNoScroll(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
	}

	public GridViewNoScroll(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public GridViewNoScroll(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	@Override
	public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
				MeasureSpec.AT_MOST);
		super.onMeasure(widthMeasureSpec, expandSpec);
	}

}
